{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "3dd7fd3e-807e-4332-9c2e-856e447b76d9",
   "metadata": {},
   "outputs": [
    {
     "ename": "SyntaxError",
     "evalue": "unterminated string literal (detected at line 2) (434366776.py, line 2)",
     "output_type": "error",
     "traceback": [
      "\u001b[1;36m  Cell \u001b[1;32mIn[1], line 2\u001b[1;36m\u001b[0m\n\u001b[1;33m    names=['label','a1','a2','a3','a4','a5','a6','a7','a8,'a9','a10','a11','a12','a13']\u001b[0m\n\u001b[1;37m                                                                                     ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m unterminated string literal (detected at line 2)\n"
     ]
    }
   ],
   "source": [
    "import pandas as pd\n",
    "names=['label','a1','a2','a3','a4','a5','a6','a7','a8,'a9','a10','a11','a12','a13']\n",
    "dataset=pd.read_csv(\"wine.data\",names=names)\n",
    "print(\"葡萄酒数据集如下:\")\n",
    "print(dataset)\n",
    "data=dataset.iloc[range(0,178),range(1,14)]\n",
    "target=dataset.iloc[range(0,178),range(0,1)]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "b054597b-a860-4311-9d09-8cd266dc97f4",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.12.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
